<?php

/**
 * Green Calc
 * Calc entry point file for Calc Component (reserved. using plugin Calc)
 * 2009-2014 All rights reserved
 * @link http://www.greenkey.ru
 * @license GNU/GPL v3
 */
// No direct access
defined('_JEXEC') or die;

// Logging activate
JLog::addLogger(
        array('text_file' => 'com_calc.php'), JLog::ALL, array('com_calc')
);
JError::$legacy = false;

// import joomla controller library
jimport('joomla.application.component.controller');

// Get an instance of the controller prefixed by Calc
$controller = JControllerLegacy::getInstance('Calc');

// Perform the Request task
$input = JFactory::getApplication()->input;
$controller->execute($input->getCmd('task'));

// Redirect if set by the controller
$controller->redirect();
